// 用户i相关请求模块
import request from '@/utils/request'

// 获取家政人员的用户信息
export const userProfile = () => {
  return request({
    method: 'GET',
    url: '/herdetails'
  })
}
export const userProfileId = targer => {
  return request({
    method: 'GET',
    url: `/herdetails/${targer}`
  })
}

// 获取登录信息
export const userLogin = () => {
  return request({
    method: 'GET',
    url: '/herdetails/getlogin'
  })
}

// 获取岗位
export const userJob = () => {
  return request({
    method: 'GET',
    url: '/herdetails/job'
  })
}

// 获取筛选的岗位
export const userJobx = () => {
  return request({
    method: 'GET',
    url: '/herdetails/jobx'
  })
}

// 添加关注
export const follow = target => {
  return request({
    method: 'POST',
    url: '/herdetails/follow',
    data: {
      target
    }
  })
}
